<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <div id="app">
            <a v-bind:href="url">{{alt}}</a>
            <!-- v-bind简写  :    -->
            <a :href="url" :target="type">{{alt}}</a>
            <a :href="url" v-bind:target="type">{{alt}}</a>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                url: 'https://www.baidu.com/',
                type: '_blank',
                alt: '百度'
            }
        })
        // setTimeout(()=>{
        //     vm._data.url = 'https://tophub.today/n/Q1Vd5Ko85R'
        // },3000)
    </script>
</body>

</html>